'use strict';

function average_uneven(collection) {
  let sum=0;
  let num=0;
  for(let item of collection){
    if(item%2!=0){
      sum+=item;
      num++;
    }
  }
  let ave=sum/num;
  console.log(ave);
  return ave;
}

module.exports = average_uneven;
average_uneven([1,2,3,4,5,6,7,8,9,10]);
